package demo10;

import java.io.*;

/**
 * Created by Administrator on 2017/4/7.
 */
public class OutFile extends DataOutputStream {
    public OutFile(String filename)
        throws IOException{
        super(new BufferedOutputStream(new FileOutputStream(filename)));

    }
    public OutFile(File file) throws IOException{
        this(file.getPath());
    }
}
